Q: I haven't found a good way to initialize custom objects instantiated by
\fc0 InterfaceBuilder. I can incrementally initialize them by defining
\b set<outlet>:
\b0 methods, but this introduces the possibility of dependencies on the order in which the outlets are connected. How can custom InterfaceBuilder objects be reliably initialized? \
\
A: InterfaceBuilder does not send a notification such as
\b awake:
\b0 after the unarchiving process is complete. However, you can write your own
\b awake
\b0 method right after loading in the
\b .nib
\b0 files. In this
\b awake:
\b0 method, you would put all your additional initializing code. See the following code snippet:\
\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc0 /* You can place your awake method anywhere right after your loadNibxxx message\
* In this example, FormWindow.nib is a separate nib file, which is loaded\